;-------------------------------------------------------------------------------------------------------
; Fix an issue, when aim down, and walk off a ledge it will reset to aiming up (thanks to laserlambert for reporting it)
; T6F and  T70 for fix this issue
T6F:	;= Falling facing right, aiming downright
DW $0000,$0200,$0087	;pb/cf	(hold [LEFT] to turn left)
DW $0800,$0010,$006D  ;;;CF added !!! (press [UP] & hold [R] to aim upright) 
DW $0000,$0010,$006F	;cf	(hold [R] to aim downright) ;;;CF added !!!
DW $0000,$0900,$006D	;pb/cf	(hold [UP+RIGHT] to aim upright)
DW $0000,$0500,$006F	;pb/cf	(hold [DOWN+RIGHT] to aim downright)
DW $0000,$0800,$002B	;pb/cf	(hold [UP] to aim up)
DW $0000,$0400,$002D	;pb/cf	(hold [DOWN] to aim down)
DW $0000,$0040,$0067	;pb/cf	(hold [X] to fire)
DW $0000,$0100,$0029	;cf	(hold [RIGHT] to move right)
DW $0000,$4400,$0037	;pb	(hold [DOWN+Y] to morph)
DW $0080,$0000,$0019	;pb	(hold [A] to spinjump)
DW $0000,$0080,$0019	;pb	(hold [A] to spinjump)
DW $FFFF
;-------------------------------------------------------------------------------------------------------
; Fix an issue, when aim down, and walk off a ledge it will reset to aiming up (thanks to laserlambert for reporting it)
; T6F and  T70 for fix this issue
T70:	;= Falling facing left, aiming downleft
DW $0000,$0100,$0088	;pb/cf	(hold [RIGHT] to turn right)
DW $0800,$0010,$006E	;;;;CF added!!!	(press [UP] & hold [R] to aim upleft)   !!!
DW $0000,$0010,$0070	;cf	(hold [R] to aim downleft)  ;;;CF added !!!
DW $0000,$0A00,$006E	;pb/cf	(hold [UP+LEFT] to aim upleft)
DW $0000,$0600,$0070	;;; added fix aiming down left fall bug when firing pb/cf	(hold [DOWN+LEFT] to aim downleft)
DW $0000,$0800,$002C	;pb/cf	(hold [UP] to aim up)
DW $0000,$0400,$002E	;pb/cf	(hold [DOWN] to aim down)
DW $0000,$0040,$0068	;pb/cf	(hold [X] to fire)
DW $0000,$0200,$002A	;cf	(hold [LEFT] to move left)
DW $0000,$4400,$0038	;pb	(hold [DOWN+Y] to morph)
DW $0000,$0080,$001A	;pb	(hold [A] to spinjump)
DW $0080,$0000,$001A	;pb	(press [A] to spinjump)
DW $FFFF
;-------------------------------------------------------------------------------------------------------

; fix When you are aiming down and you walk left into a wall (even a 1 block high wall) 
; this only happens when walking left and not right this time.
; T08, TD2 and TE5 for this fix
; changes only on this side (left) : TD2 merged with T08 and TE5
T08:	;= Facing left, aiming downleft
TD2:	;= Samus ran left into a wall, is still holding left and is now aiming diagonal down
TE5:	;= Landing from normal jump, facing left and aiming downleft
;; a supprimer car n'apparat pas right : DW $0880,$0810,$0058	;cf	(press [UP+A] & hold [R+UP] to jump aiming upleft)

DW $0080,$0800,$0056	;cf	(press [A] & hold [UP] to jump aiming up)
DW $0080,$0010,$005A	;cf	(press [A] & hold [R] to jump aiming downleft)
DW $0080,$0000,$004C	;cf	(press [A] to jump)
DW $0400,$0010,$00F6	;cf	(press [DOWN] & hold [R] to crouch aiming downleft)
DW $0400,$0000,$0036	;cf	(press [DOWN] to crouch)
DW $0800,$0210,$0010	;cf	(press [UP] & hold [R+LEFT] to move left aiming upleft)
DW $0000,$0210,$0012	;cf	(hold [R+LEFT] to move left aiming downleft)
DW $0000,$0110,$008E	;cf	(hold [R+RIGHT] to turn right aiming downright)
DW $0000,$0100,$0026	;cf	(hold [RIGHT] to turn right)
DW $0800,$0010,$0006	;cf	(press [UP] & hold [R] to aim upleft)
DW $0000,$0010,$0008	;cf	(hold [R] to aim downleft)
DW $0000,$0800,$0004	;cf	(hold [UP] to aim up)
DW $0000,$0200,$000A	;cf	(hold [LEFT] to move left)
DW $FFFF

;-------------------------------------------------------------------------------------------------------

; fix when you hold the aim down with aim button only and jump while walking right it will have you do a spinning jump, 
; when aiming normally stops you from spinning. strangely it is only when facing right and not left.
; T11 only for this fix (different order than original)
T11:	;= Moving right, aiming downright
DW $0000,$4400,$0037	;pb	(hold [DOWN+Y] to F)
DW $0400,$0010,$00F5	;cf	(press [DOWN] & hold [R] to aim downright)
DW $0400,$0000,$0035	;pb/cf	(press [DOWN] to crouch)
DW $0080,$0010,$0059	;cf	(press [A] & hold [R] to jump aiming downright)
DW $0080,$0000,$0019	;pb/cf	(press [A] to spinjump)
DW $0800,$0110,$000F	;cf	(press [UP] & hold [R+RIGHT] to move aiming upright)
DW $0000,$0500,$0011	;pb/cf	(hold [DOWN+RIGHT] to move aiming downright)
DW $0000,$0110,$0011	;cf	(hold [R+RIGHT] to move aiming downright)
DW $0000,$0140,$000B	;pb/cf	(hold [RIGHT+X] to extend gun)
DW $0000,$0900,$000F	;pb/cf	(hold [UP+RIGHT] to move aiming upright)
DW $0000,$0100,$0009	;pb/cf	(hold [RIGHT] to move)
DW $0000,$0210,$008D	;cf	(hold [R+LEFT] to turn left)
DW $0000,$0200,$0025	;pb/cf	(hold [LEFT] to turn left)
DW $0000,$0800,$0003	;pb/cf	(hold [UP] to aim up)
DW $0000,$0010,$0007	;cf	(hold [R] to aim downright)
DW $FFFF

